import
{
    Swipe,
    SwipeItem,
    Button,
    Tabbar,
    TabbarItem,
    NavBar,
    Checkbox,
    CheckboxGroup,
    Search,
    Icon,
    Image as VanImage,
    Sidebar,
    SidebarItem,
    Field,
    TreeSelect,
    Divider,
    Stepper,
    Row,
    Col,
    Popup,
    Tab,
    CellGroup,
    Cell,
} from 'vant'//指定需引⼊的组件

let vantUIs = [
    Swipe,
    SwipeItem,
    Button,
    Tabbar,
    TabbarItem,
    NavBar,
    Checkbox,
    CheckboxGroup,
    Search,
    Icon,
    VanImage,
    Sidebar,
    SidebarItem,
    Field,
    TreeSelect,
    Divider,
    Stepper,
    Row,
    Col,
    Popup,
    Tab,
    CellGroup,
    Cell
]//定义组件数组


export default {
    install(Vue) {
        vantUIs.forEach(vantUI => {
            Vue.component(vantUI.name, vantUI)//注册组件
        })
    }
}